<?php

/**
 * @author nhatnam
 * @copyright 2011
 */

require('../Model/clsnhaxuatban.php');

if($_SERVER['REQUEST_METHOD']=='POST')
{
    $sua = $_POST['sua'];
    $xoa = $_POST['xoa'];
    $tiepnhan = $_POST['tiepnhan'];
    if($tiepnhan == 'Thêm')
    {
        themnhaxuatban();
        header("Location: ../giaodiennhaxuatban.php");  
        return;
    }
    if($xoa=='Xóa')
    {
        xoanhaxuatban();
        header("Location: ../giaodiennhaxuatban.php");
        return;
    }
    if($sua=='Sửa')
    {
        updatenhaxuatban();
        header("Location: ../giaodiennhaxuatban.php");
        return;
    }
    
}


?>